<template>
	<view class="content">
		<navTop :title="navtop.title" :isHeight="false" :tipsShow="false" hasBgc="#fff" :color="navtop.color" :isBack="true" ></navTop>
		<view class="content-box" :style="{paddingTop:barHeight+'rpx'}">
			<!-- <view class="content-title">Message</view> -->
			<view v-html="info" class="padd-t">
				
			</view>
		</view>
		<view class="content-body">
		</view>
	</view>
</template>
<script>
import navTop from '@/components/nav-title.vue';
import iconAdd from '@/static/icon_add.png';

	export default {
		components: {
			navTop
		},
		data() {
			return {
				iconAdd,
				barHeight: 0,
				navtop: {
					title: 'Recent Detail',
					color: '#000'
				},
				info: ''
			}
		},
		onLoad(e) {
			this.getInfo(e.id)
		},
		created() {
			this.isBarHeight999().then((statusBarHeight)=>{
				this.barHeight = statusBarHeight + 140
			})
		},
		mounted() {
		},
		methods: {
			getInfo(id) {
				this.$http('get', '/app/realtimeInfo/getById', {
					id
				}).then(res => {
					if (res.success) {
						this.info = res.data.content || ''
					}
				})
			},
			gotoPage() {
			}
		}
	}
</script>

<style lang="less">
.content {
	background-color: #FBFCFE;
	// padding: 0 30px;
	min-height: 100vh;
}
.content-box {
	font-size: 40rpx;
	font-family: Helvetica-Bold, Helvetica;
	font-weight: bold;
	color: #1F1F1F;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 34rpx;
	.content-title {
		font-size: 40rpx;
		padding: 28rpx 30rpx;
		background-color: #fff;
		width: 100%;
		box-sizing: border-box;
	}
}

.content-body{
	padding: 0 30rpx;
	margin-top: 40rpx;
	z-index: 999;
}
.content-body__img {
	width: 336rpx;
	height: 192rpx;
	border-radius: 20rpx;
}

.content-body__text {
	display: block;
	width: 100%;
	font-size: 28rpx;
	margin: 24rpx auto;
	font-family: Helvetica;
	color: #1F1F1F;
	box-sizing: border-box;
	text-overflow: -o-ellipsis-lastline;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}
.content-body__bg {
	width: 192rpx;
	height: 192rpx;
	position: absolute;
	right: 0;
	top: 0;
}
.padd-t {
	box-sizing: border-box;
	padding: 40rpx 0;
}
</style>
